-
Notifications
You must be signed in to change notification settings - Fork 121
[In-App Purchases] Sandbox billing mode warnings #8123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
You can test the changes from this Pull Request by:
|
koke
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know if I'd add an alert every single time you try to purchase. Could we look first at whether wpcom-api-base-url is set and maybe replace the whole thing with the warning if it's not? That seems less intrusive and would work as long as we don't want to use this to test in production.
…e sandbox environment url is not setup.
Generated by 🚫 dangerJS |
|
@koke Sure, please take a look now. |
koke
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great improvement! ![]()
# Conflicts: # WooCommerce/Classes/ViewRelated/InAppPurchases/InAppPurchasesDebugView.swift
Closes: #8122
Description
As we had a few test IAP transactions that ended up in production because the sandbox billing mode was not enabled when testing,
I wanted to propose the addition of a warning text and an alert reminder before purchasing a product in our IAP debug screen.we add a warning text instead of the IAP Debug Menu if the sandbox URL was not set in the WooCommerce Xcode schema.Testing instructions
No WPCOM Sandbox URL in the WooCommerce schema environment variable
Open the IAP Debug screen. A warning text should appear instead of the IAP Debug menu:
WPCOM Sandbox URL in the WooCommerce schema environment variable is setup
Open the IAP Debug screen. You should see the IAP Debug Menu as usual.
RELEASE-NOTES.txtif necessary.